package com.clazz;

import cn.hutool.core.convert.ConverterRegistry;

/**
 * @Description : 类描述
 * Created by cyd on 2021-04-15 23:13:15
 */
public class TestClass {

    public static void test01() {
        String str = "123";
        System.out.println(str.getClass() == String.class);
    }

    public static void test02() {
        Integer a = 3423;
        ConverterRegistry converterRegistry = ConverterRegistry.getInstance();
        String result = converterRegistry.convert(String.class, a);
        System.out.println(result.getClass() == String.class);

    }

    public static void main(String[] args) {
        test02();
    }
}
